require 'socket'

client = TCPSocket.new('127.0.0.1',4481)
client.write('hello')
client.close